package com.audaque.springboot.foshanupload.web.rocketmqdemo.listener;

import com.audaque.springboot.foshanupload.web.rocketmqdemo.model.OrderPaidEvent;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;


@Slf4j
@Service
@RocketMQMessageListener(topic = "asyncSend-object", consumerGroup = "asyncSend-object-push")
public class AsyncSendObjectListener implements RocketMQListener<OrderPaidEvent> {
    public void onMessage(OrderPaidEvent orderPaidEvent) {
        log.debug("received orderPaidEvent: {}", orderPaidEvent);
    }
}